﻿using Youz.Common.BLL;
using Youz.Common.Entity;
using Youz.Common.Helper;
using Youz.CreditRepay.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Youz.CreditRepay.Server
{
    public class BasePage : System.Web.UI.Page
    {
        protected static string R(LanguageModule module, string key)
        {
            return Lang_LanguageBLL.LanguageByManage(module, key);
        }

        protected static string R(LanguageModule module, string key, string defaultValue)
        {
            return Lang_LanguageBLL.LanguageByManage(module, key, defaultValue);
        }

        protected override void OnInit(EventArgs e)
        {
            AuthRequest();
        }

        protected void AuthRequest()
        {
            //Guid roleID = TypeHelper.ConvertTo<Guid>(Core.CurrentRoleID);

            //if (!Right_RoleRightBLL.Auth(roleID))
            //{
            //    Response.Write(R(LanguageModule.Right_RoleRight, "AuthRequest", "對不起，您不具有訪問該頁面的权限，請聯繫管理員！"));
            //    Response.End();
            //}
        }

    }
}
